import { keyMirror } from "@gilbarbara/helpers";

// import { Status } from "types";

export const ActionTypes = keyMirror({
  GITHUB_GET_REPOS_REQUEST: undefined,
  GITHUB_GET_REPOS_SUCCESS: undefined,
  GITHUB_GET_REPOS_FAILURE: undefined,
  HIDE_ALERT: undefined,
  SHOW_ALERT: undefined,
  SET_APP_OPTIONS: undefined,
  USER_LOGIN_REQUEST: undefined,
  USER_LOGIN_SUCCESS: undefined,
  USER_LOGIN_FAILURE: undefined,
  USER_LOGOUT_REQUEST: undefined,
  USER_LOGOUT_SUCCESS: undefined,
  USER_LOGOUT_FAILURE: undefined,
  GET_USER: undefined,
  GET_USER_SUCCESS: undefined,
  GET_USER_FAILURE: undefined,
  GENERATE_OTP: undefined,
  GENERATE_OTP_SUCCESS: undefined,
  GENERATE_OTP_FAILURE: undefined,
  VERIFY_OTP: undefined,
  VERIFY_OTP_SUCCESS: undefined,
  VERIFY_OTP_FAILURE: undefined,
  UPDATE_USER: undefined,
  UPDATE_USER_SUCCESS: undefined,
  UPDATE_USER_FAILURE: undefined,
  RESET_USER_STATE: undefined,
  GET_FLOWS_BEFORE: undefined,
  GET_FLOWS_BEFORE_SUCCESS: undefined,
  GET_FLOWS_BEFORE_FAILURE: undefined,
  GET_FLOWS_AFTER: undefined,
  GET_FLOWS_AFTER_SUCCESS: undefined,
  GET_FLOWS_AFTER_FAILURE: undefined,
  GET_FLOW_MESSAGES_BEFORE: undefined,
  GET_FLOW_MESSAGES_BEFORE_SUCCESS: undefined,
  GET_FLOW_MESSAGES_BEFORE_FAILURE: undefined,
  GET_FLOW_MESSAGES_AFTER: undefined,
  GET_FLOW_MESSAGES_AFTER_SUCCESS: undefined,
  GET_FLOW_MESSAGES_AFTER_FAILURE: undefined,
  GET_FLOW_DETAILS: undefined,
  GET_FLOW_DETAILS_SUCCESS: undefined,
  GET_FLOW_DETAILS_FAILURE: undefined,
  GET_FLOW_ACTIVE_RUN_STATUS: undefined,
  GET_FLOW_ACTIVE_RUN_STATUS_SUCCESS: undefined,
  GET_FLOW_ACTIVE_RUN_STATUS_FAILURE: undefined,
  SUBMIT_FLOW_RUN_USER_INPUT: undefined,
  SUBMIT_FLOW_RUN_USER_INPUT_SUCCESS: undefined,
  SUBMIT_FLOW_RUN_USER_INPUT_FAILURE: undefined,
  SUBMIT_FLOW_NODE_USER_INPUT: undefined,
  SUBMIT_FLOW_NODE_USER_INPUT_SUCCESS: undefined,
  SUBMIT_FLOW_NODE_USER_INPUT_FAILURE: undefined,
  GET_INTEGRATIONS: undefined,
  GET_INTEGRATIONS_SUCCESS: undefined,
  GET_INTEGRATIONS_FAILURE: undefined,
  ADD_TEMP_USER_MESSAGE_TO_FLOW: undefined,
  GET_FLOW_DATA_BEFORE: undefined,
  GET_FLOW_DATA_BEFORE_SUCCESS: undefined,
  GET_FLOW_DATA_BEFORE_FAILURE: undefined,
  GET_FLOW_DATA_AFTER: undefined,
  GET_FLOW_DATA_AFTER_SUCCESS: undefined,
  GET_FLOW_DATA_AFTER_FAILURE: undefined,
  RESET_FLOW_MESSAGES: undefined,
  ARCHIVE_FLOW: undefined,
  ARCHIVE_FLOW_SUCCESS: undefined,
  ARCHIVE_FLOW_FAILURE: undefined,
  GET_ACCOUNT_OF_USER: undefined,
  GET_ACCOUNT_OF_USER_SUCCESS: undefined,
  GET_ACCOUNT_OF_USER_FAILURE: undefined,
  GET_ACCOUNTS_OF_USER: undefined,
  GET_ACCOUNTS_OF_USER_SUCCESS: undefined,
  GET_ACCOUNTS_OF_USER_FAILURE: undefined,
  CREATE_ACCOUNT: undefined,
  CREATE_ACCOUNT_SUCCESS: undefined,
  CREATE_ACCOUNT_FAILURE: undefined,
  GET_ACCOUNT_USERS: undefined,
  GET_ACCOUNT_USERS_SUCCESS: undefined,
  GET_ACCOUNT_USERS_FAILURE: undefined,
  SET_ADMIN_MODE: undefined,
  GET_LLM_CALLS: undefined,
  GET_LLM_CALLS_SUCCESS: undefined,
  GET_LLM_CALLS_ERROR: undefined,
  GET_DATA_TABLE_DOCUMENTS: undefined,
  GET_DATA_TABLE_DOCUMENTS_SUCCESS: undefined,
  GET_DATA_TABLE_DOCUMENTS_ERROR: undefined,
  GET_FLOW_RUNS: undefined,
  GET_FLOW_RUNS_SUCCESS: undefined,
  GET_FLOW_RUNS_ERROR: undefined,
  GET_FLOW_CHART: undefined,
  GET_FLOW_CHART_SUCCESS: undefined,
  GET_FLOW_CHART_ERROR: undefined,
  CREATE_API_KEY: undefined,
  CREATE_API_KEY_SUCCESS: undefined,
  CREATE_API_KEY_FAILURE: undefined,
  GET_API_KEYS: undefined,
  GET_API_KEYS_SUCCESS: undefined,
  GET_API_KEYS_FAILURE: undefined,
  DELETE_API_KEY: undefined,
  DELETE_API_KEY_SUCCESS: undefined,
  DELETE_API_KEY_FAILURE: undefined,
  LOGOUT: undefined,
  UPDATE_ACCOUNT_API_KEYS: undefined,
  UPDATE_ACCOUNT_API_KEYS_SUCCESS: undefined,
  UPDATE_ACCOUNT_API_KEYS_FAILURE: undefined,
});

export const STATUS = {
  IDLE: "idle",
  RUNNING: "running",
  READY: "ready",
  SUCCESS: "success",
  ERROR: "error",
};
